﻿using System;

namespace DigitalQuran
{
    /// <summary>
    /// Distance in letters, words, verses, and chapters between two same letters, words, or verses.
    /// </summary>
    public struct Distance
    {
        /// <summary>
        /// Gets the Distance to previous same letter in letters
        /// <para>Will be -1 if not applicable</para>
        /// </summary>                        
        public int DistanceFromLetter { get; internal set; }

        /// <summary>
        /// Gets the Distance to previous same letter/word in words
        /// <para>Will be -1 if not applicable</para>
        /// <para>Will be -1 if not applicable</para>
        /// </summary>        
        public int DistanceFromWord { get; internal set; }

        /// <summary>
        /// Gets the Distance to previous same letter/word/verse in verses
        /// </summary>        
        public int DistanceInVerse { get; internal set; }

        /// <summary>
        /// Gets the Distance to previous same letter/word/verse in chapters
        /// <para>Will be -1 if not applicable</para>
        /// </summary>        
        public int DistanceInChapter { get; internal set; }
    }
}